import config from 'config'
import httpFetch from 'share/httpFetch'
import errorMessage from 'share/errorMessage'
import axios from "axios";

export default {

  //获取课程列表
  getCourseList() {
    return httpFetch.get(`${config.baseUrl}/api/operation/financecourse/list`)
      .catch(err => {
        errorMessage(err.response);
        throw err;
      })
  },

  //获取课程列表
  getToken(params) {
    return httpFetch.post(`${config.baseUrl}/api/polyv/token`, params)
      .catch(err => {
        errorMessage(err.response);
        throw err;
      })
  }
}
